package cn.rengy.isql;

import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

@Setter
@Getter
public class SqlEntity implements Serializable {

	private String sql_name;
	private String sql_value;//原始sql
	private Integer is_remove_cache;//是否清除缓存
	private String cache_operate;//清除动作 evict移除缓存，clear清空缓存
	private String cache_type;//要清除的缓存保存在哪里 redis,local TODO 专门做缓存管理
	private String cache_name;
	private String cache_key_param;
	private Integer cache_key_index;

	private String engine_type;//'none','DIY','FreeMarker'
	private String sql_type;//prepared named 数据库去掉此字段 可以解析获得
	private String sql_result_type;//map list singlecolumn update-int
	private String action_type;//select update delete
	private String transcode;//转义key
	private VariableParsedSql parsedSql;//解析sql
	private String authCode;//sql权限key
	private String sqlGauss;
}
